import request from '@/utils/request'

export function getDocumentations(query) {
  return request({
    url: '/knowledge/documentation/getList',
    method: 'post',
    data: query
  })
}

export function getDocumentation(id) {
  return request({
    url: '/knowledge/documentation/getDetail',
    method: 'post',
    data: id
  })
}

export function saveDocumentation(formdata) {
  return request({
    url: '/knowledge/documentation/save',
    method: 'post',
    data: formdata
  })
}
export function changeStatusByDocumentationID(id) {
  return request({
    url: '/knowledge/documentation/change-status',
    method: 'post',
    data: id
  })
}

export function removeDocumentationByID(id) {
  return request({
    url: '/knowledge/documentation/remove',
    method: 'post',
    data: id
  })
}

export function deleteDocumentationByID(id) {
  return request({
    url: '/knowledge/documentation/delete',
    method: 'post',
    data: id
  })
}

